package com.lkm.app_ui.m.fun;

import com.lkm.app_ui.m.vip.VipInfo;
import com.lkm.frame.otto.LinkBusEventFlag;
import com.lkm.frame.otto.ThreadEnforcer;
import com.lkm.market2_0.m.steelyarddata.OrderEntity;


public class OnPayEvent implements LinkBusEventFlag {

    private final boolean isSuccess;

    public        boolean     isSave = true;
    private final OrderEntity orderEntity;


    private final VipInfo vipInfo;


    public OnPayEvent(boolean isSuccess, OrderEntity orderEntity, VipInfo vipInfo) {
        this.isSuccess = isSuccess;
        this.orderEntity = orderEntity;
        this.vipInfo = vipInfo;
    }

    public OnPayEvent(boolean isSuccess, OrderEntity orderEntity, VipInfo vipInfo, boolean isSave) {
        this.isSuccess = isSuccess;
        this.orderEntity = orderEntity;
        this.vipInfo = vipInfo;
        this.isSave = isSave;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public OrderEntity getOrderEntity() {
        return orderEntity;
    }

    public VipInfo getVipInfo() {
        return vipInfo;
    }

    @Override
    public ThreadEnforcer getThreadEnforcer() {

        return ThreadEnforcer.ANY;
    }

    @Override
    public boolean isStickyBroadcast() {
        return false;
    }
}
